<template>
  <base-breadcrumb>
    <a-card>
      <!-- <title-name>检查记录评分表</title-name> -->
      <list-table
        :columns="columns"
        :request="loadData"
        :showPage="false"
      >
        <template slot="operation" slot-scope="text,record">
          <div class="pub-table-list-action">
            <span @click="goDetail(record)" v-if="hideBuquBtn()">编辑</span>
          </div>
        </template>
      </list-table>
    </a-card>
  </base-breadcrumb>

</template>
<script>
import Api from '@/api/safetySupervision/base/checkLogScore.js'

export default {
  name: 'a' + Date.now(),
  components: {},
  data() {
    return {
      columns: [
        {
          title: '分类名称',
          dataIndex: 'categoryName',
          width: 250, 
        },
        {
          title: '操作',
          dataIndex: 'operation',
          width: 100, 
          scopedSlots: { customRender: 'operation' }
        }
      ],
      loadData2: () => {
        return {
          code: 200, data: [
            { name: '项目管理过程考核表（公司）' },
            { name: '项目管理过程考核表（分公司）' }
          ]
        }
      },
      loadData: () => {
        return Api.findListByMain()
      }
    }
  },
  computed: {},
  watch: {},
  created() {
  },
  methods: {
    goDetail(row) {
      this.$nav('/safetySupervision/basicSetting/checkLogScore/projectManageCheck', {
        id: row.id,
        isBranchCom: row.isBranchCom
      })
    }
  }
}
</script>

<style scoped lang="less">
</style>
